<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<html>
<head>
    <title>打印</title>
    <script src="${pageContext.request.contextPath}/static/main_oa/js/jquery.min.js" charset="utf-8"></script>
</head>
<body>
<style type="text/css">
    .tg  {border-collapse:collapse;border-spacing:0;}
    .tg td{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;
        overflow:hidden;padding:0px 20px;word-break:normal;}
    .tg th{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;
        font-weight:normal;overflow:hidden;padding:0px 20px;word-break:normal;}
    .tg .tg-c3ow{border-color:inherit;text-align:center;vertical-align:top}
    .tg .tg-9d8n{border-color:inherit;font-size:22px;text-align:center;vertical-align:top}
    .tg .tg-0pky{border-color:inherit;text-align:left;vertical-align:top}
</style>
<table class="tg" id="fo">
    <thead>
    <tr>
        <th class="tg-9d8n" colspan="8">家政派工单</th>
    </tr>
    </thead>
    <tbody>
    <tr>
        <td class="tg-0pky">派单号</td>
        <td class="tg-0pky" colspan="3">${printingDto.oid}</td>
        <td class="tg-0pky">预约单号</td>
        <td class="tg-0pky" colspan="3">${printingDto.serialnumber}</td>
    </tr>
    <tr>
        <td class="tg-0pky">客户姓名</td>
        <td class="tg-0pky">${printingDto.cName}</td>
        <td class="tg-0pky">联系方式</td>
        <td class="tg-0pky">${printingDto.cPhone}</td>
        <td class="tg-0pky">服务项目</td>
        <td class="tg-0pky" colspan="3">${printingDto.serviceProject}</td>
    </tr>
    <tr>
        <td class="tg-0pky">客户卡号</td>
        <td class="tg-0pky">${printingDto.cardid}</td>
        <td class="tg-0pky">收费金额</td>
        <td class="tg-0pky">${printingDto.onMoney}</td>
        <td class="tg-0pky">收款人</td>
        <td class="tg-0pky" colspan="3">${printingDto.onMoneyPeople}</td>
    </tr>
    <tr>
        <td class="tg-0pky">工作人员</td>
        <td class="tg-0pky" colspan="3">${printingDto.sName}</td>
        <td class="tg-0pky">服务时间</td>
        <td class="tg-0pky" colspan="3"><fmt:formatDate value='${printingDto.serviceTime}' pattern='yyyy-MM-dd' /></td>
    </tr>
    <tr>
        <td class="tg-0pky">详细地址</td>
        <td class="tg-0pky" colspan="7">${printingDto.address}</td>
    </tr>
    <tr>
        <td class="tg-0pky">派工备注</td>
        <td class="tg-0pky" colspan="7">${printingDto.remark}</td>
    </tr>
    <tr>
        <td class="tg-0pky">是否擦玻璃</td>
        <td class="tg-0pky">否</td>
        <td class="tg-0pky">是否有防盗网</td>
        <td class="tg-0pky">否</td>
        <td class="tg-0pky">派单时间</td>
        <td class="tg-0pky" colspan="3"><fmt:formatDate value='${printingDto.oWriteTime}' pattern='yyyy-MM-dd' /></td>
    </tr>
    <tr>
        <td class="tg-0pky" colspan="3" rowspan="2">本单安全队长<%--${printingDto.sName}--%>
            <c:if test="${printingDto.sName == ''}">
               <%-- &nbsp; &nbsp; &nbsp; &nbsp;--%>
            </c:if>
            <c:if test="${printingDto.sName != null && printingDto.sName != ''}">
                ${printingDto.sName}
            </c:if>
            ，对全体成员安全负责!<br>剩余工时:${printingDto.nworkinghours}
        </td>
        <td class="tg-0pky"></td>
        <td class="tg-c3ow" rowspan="2"><br>卡有效期</td>
        <td class="tg-0pky" colspan="3" rowspan="2"><br> <fmt:formatDate value='${printingDto.period}' pattern='yyyy-MM-dd' /></td>
    </tr>
    <tr>
        <td class="tg-0pky"></td>
    </tr>
    </tbody>
    <p></p>
</table>
<button id="btn" onclick="printing()" style="margin-left: 230px">打印</button>
</body>
<script>
    function printing(){
        $("#btn").hide();
        window.print();
        $("#btn").show();
    }
</script>
</html>
